From: Paul Eggert Date: Wed, 15 Jun 2011 19:29:18 +0000 (-0700) Subject: * fileio.c (emacs_lseek): Work around GCC bug 43772. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~844^2~1241^2~1 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=096a9774c8a8c8710f07e2fbab54e35efeb38050;p=emacs.git * fileio.c (emacs_lseek): Work around GCC bug 43772. --- diff --git a/src/fileio.c b/src/fileio.c index 2e0b3831e8d..fd5277cbd59 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -3114,7 +3114,9 @@ read_non_regular_quit (Lisp_Object ignore) static off_t emacs_lseek (int fd, EMACS_INT offset, int whence) { - if (! (TYPE_MINIMUM (off_t) <= offset && offset <= TYPE_MAXIMUM (off_t))) + /* Use "&" rather than "&&" to suppress a bogus GCC warning; see + . */ + if (! ((TYPE_MINIMUM (off_t) <= offset) & (offset <= TYPE_MAXIMUM (off_t)))) { errno = EINVAL; return -1;